| Visual Basic (Declaration) | |
|---|---|
Public Overloads Overrides Sub Write( _ ByVal buffer() As Byte, _ ByVal offset As Integer, _ ByVal count As Integer _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MessagePartStream Dim buffer() As Byte Dim offset As Integer Dim count As Integer instance.Write(buffer, offset, count) | |
Parameters
- buffer
- Contains the data to be written.
- offset
- The zero-based position in the buffer from which to begin writing from.
- count
- The number of bytes to write.
| Exception | Description |
|---|---|
| System.IO.IOException | Thrown when the Stream is not writable. |
| System.ArgumentNullException | Thrown when the buffer is null. |
| System.ArgumentOutOfRangeException | Thrown when the offset is less than zero or when count is less than or equal to zero. |
| System.ArgumentException | Thrown when the (offset + count) > buffer.Length. |
This method copies bytes contained in buffer to the Stream, starting from the position specified by offset and writing the number of bytes specified by count.
Target Platforms: Microsoft .NET Framework 2.0